all:p4

CXX=/opt/openmpi-1.3.3-icc/bin/mpicxx
CXXFLAGS=-g -O3 -openmp -static-intel -Wall -Wno-missing-declarations
RM=/bin/rm -rf

SRC= p4.c
SRCO= ${SRC:.c=.o}

debug:
	$(MAKE) $(MAKEFILE) DEBUG="-DDEBUG"	

p4: ${SRCO}
	$(CXX) $(CXXFLAGS) -o p4 ${SRCO}
	$(RM) *.o

%.o: %.c
	$(CXX) $(CXXFLAGS) $(DEBUG) -o $@ -c $<
